<?php

namespace Respect\Http\Module;

use Respect\Http\Bootstrappable;
use Respect\Environment\EnvironmentableInterface;
use ArrayObject;

class Post extends ArrayObject implements Bootstrappable
{

    public static function qualify(EnvironmentableInterface $env)
    {
        return $env('REQUEST_METHOD') === 'POST' ? new static($env) : false;
    }

    public function __construct(EnvironmentableInterface $env)
    {
        parent::__construct($_POST);
    }

}